package net.bingosoft.common.swato;

import javax.servlet.http.HttpServletRequest;
/**
 * 2008-2-25 下午05:20:46
 * Author:yangdongyu(yangdy@bingosoft.net)
 * ReadMe:
 * ChangeLog:
 */
public class RequestAware implements IRequestAware {
	private ThreadLocal<HttpServletRequest> requestHolder = new ThreadLocal<HttpServletRequest>();

	/* (non-Javadoc)
	 * @see net.bingosoft.common.swato.IRequestAware#setRequest(javax.servlet.http.HttpServletRequest)
	 */
	public void setRequest(HttpServletRequest request){
    	requestHolder.set(request);
    }
    
    /* (non-Javadoc)
	 * @see net.bingosoft.common.swato.IRequestAware#getRequest()
	 */
    public HttpServletRequest getRequest(){
    	return requestHolder.get();
    }

}
